import axios from '@/libs/axios1'
let jsonHeaders = { 'content-type': 'application/json;charset=UTF-8' }
let businessSystem = '/testplatform/businessSystem'
let product = '/testplatform/product'
let testplatform = '/testplatform'

// 应用系统分页 -- 添加目标
export const getBusinessSystemList = params => {
  return axios({
    url: `${businessSystem}`,
    method: 'GET',
    params,
    headers: jsonHeaders,
  })
}

// 应用系统分页 -- 归档
export const businessSystem4ContestPage = params => {
  return axios({
    url: `${testplatform}/extraTest/businessSystem4ContestPage`,
    method: 'GET',
    params,
    headers: jsonHeaders,
  })
}


// 资产系统分页 -- 添加目标
export const getProductQueryList = params => {
  return axios({
    url: `${product}`,
    method: 'GET',
    params,
    headers: jsonHeaders,
  })
}
// 资产系统分页 -- 归档
export const product4ContestPage = params => {
  return axios({
    url: `${testplatform}/extraTest/product4ContestPage`,
    method: 'GET',
    params,
    headers: jsonHeaders,
  })
}

// 漏洞分页 -- 归档
export const getVul4ContestPage = params => {
  return axios({
    url: `${testplatform}/extraTest/vul4ContestPage`,
    method: 'GET',
    params,
    headers: jsonHeaders,
  })
}


// 分页查询测试发现的漏洞 裁判审核
export const getProductVulnerability = params => {
  return axios({
    url: `${testplatform}/productVulnerability`,
    method: 'GET',
    params,
    headers: jsonHeaders,
  })
}

// 竞赛服务使用-测试活动漏洞各级别数量 --仿真
export const getVulLevel4ContestNum = params => {
  return axios({
    url: `${testplatform}/extraTest/vulLevel4ContestNum`,
    method: 'GET',
    params,
    headers: jsonHeaders,
  })
}

